import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { LoginComponent } from './login.component';
import { SignComponent } from './sign/sign.component';
import { RegisterComponent } from './register/register.component';


const loginRoutes: Routes = [
    {
        path: 'login',
        component: LoginComponent,
        children: [
            { path: '', component: SignComponent },
            { path: 'register', component: RegisterComponent }
        ]
    }
];


@NgModule({
  imports: [RouterModule.forChild(loginRoutes)],
  exports: [RouterModule],
  providers: []
})
export class LoginRoutingModule { }
